<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            margin: 0;padding: 0
        }
        div{
            width: 226px;
            height: 134px;
            border: 1px solid red;
            margin: 100px auto;
            position: relative;/* 参照物 */
        }
        p{
            width: 226px;
            height: 26px;
            position: absolute;
            bottom: 0;
            text-align: center;
            line-height: 26px;
        }
        .span1{
            width: 20px;
            height: 26px;
            background: #ec5a2e;
            /* 行内元素 */
            /* display: inline-block */
            float: left;
            font-size: 12px;
            
        }
        .span2{
            width: 206px;
            height: 26px;
            float: left;
            background: rgba(00,00,00,.5);
            color: #fff;
            font-size: 12px;
            /* opacity: 0.5; */
        }
    </style>
</head>
<body>
    <div>
        <img src="images/pic_03.jpg" alt="">
        <p>
            <span class="span1">2</span>
            <span class="span2">马化腾:只有充钱你才能变得更强....</span>
        </p>
    </div>
</body>
</html>